#ifndef  SCRIPTLIST_HPP
# define SCRIPTLIST_HPP

# include "ressourceslist.hpp"
# include "loadedlib.hpp"

namespace Shiny
{
  class LibList : public RessourceList<Utils::LoadedLib>
  {
  public:
    LibList()     {}
    LibList(Data) {}

    Utils::LoadedLib* LoadLib(const std::string& name, const std::string& path)
    {
      Utils::LoadedLib* lib = Utils::LoadedLib::Factory::New(path);

      if (lib != 0)
        Add(name, lib);
      return (lib);
    }
  };
}

#endif